import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
enum Api {
  jobApi = '/job',
}
/**
 * 查询作业配置分页
 * @author frank
 * @date 2022-11-04 17:57:01
 */
export const getJobPage = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: Api.jobApi + '/page', params });
/**
 * 添加作业配置
 * @author frank
 * @date 2022-11-04 17:57:01
 */
export const addJob = (params?: any) => defHttp.post({ url: Api.jobApi + '/add', params });
/**
 * 修改作业配置
 * @author frank
 * @date 2022-11-04 17:57:01
 */
export const editJob = (params?: any) => defHttp.post({ url: Api.jobApi + '/edit', params });
export const pauseJob = (params?: any) => defHttp.post({ url: Api.jobApi + '/pause', params });
export const resumeJob = (params?: any) => defHttp.post({ url: Api.jobApi + '/resume', params });

// export const deleteSysNotice = (id: string) =>
//   defHttp.post({ url: Api.SysNoticeApi + '/delete?id=' + id });
